package com.weipai.education.service;

import com.weipai.education.model.ExchangeMessage;
import com.weipai.education.model.Product;
import com.weipai.education.model.ProductPrice;
import com.weipai.education.model.api.Response;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/11 13:27
 */
public interface ProductService {
    
    //分页查询
    Response list(Integer page, Integer size, Integer key, String productCateId);

    //保存--修改
    Response save(Product product, String desc, String productPrice);

    //更改状态
    Response changeStatus(String id);

    //商品详情--前端
    Response getProductInfo(String productId, String userId);

    Response getInfoByProductId(String productId);

    //根据产品id获取全部goodsBar
    Response getAllGoodsBar(Integer productId, String type);

    //根据产品类别id和用户的id得到产品的价格
    Response getProductPriceByProductCateIdAndUserId(Integer productId);

    Response allProduct(String userId);

    Response getProductBySpuNumber(String spuNumber);

    Response exchange(ExchangeMessage exchangeMsg);
    
    Response getUserGoodsBar(Integer productId);
}
